-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
GH20591 read_csv raise ValueError for bool columns with missing values (C engine) #23968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hello @JustinZhengBC! Thanks for updating the PR.
Comment last updated on November 29, 2018 at 07:14 Hours UTC |
Codecov Report
@@ Coverage Diff @@
## master #23968 +/- ##
==========================================
- Coverage 92.31% 92.31% -0.01%
==========================================
Files 161 161
Lines 51513 51554 +41
==========================================
+ Hits 47554 47591 +37
- Misses 3959 3963 +4
Continue to review full report at Codecov.
|
ea1ec6f
to
b176a72
Compare
Currently the python engine delegates type conversion to |
@gfyoung ? |
I would consider current behavior to be a bug. Let's override so that we have consistent behavior. |
26804d5
to
6c67491
Compare
@gfyoung I managed to do it in |
b14f542
to
b038137
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @jreback
thanks @JustinZhengBC |
git diff upstream/master -u -- "*.py" | flake8 --diff
As explained in the referenced issue, trying to cast missing values to bool dtype should result in a ValueError similar to when casting to int